package com.cyzy.homework.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.time.LocalDateTime;

/**
 * 用户DTO
 */
@Data
public class UserDTO {
    
    private Integer id;
    private Integer username;
    private String phone;
    private String nickname;
    private String avatar;
    private Integer gender;
    private Integer age;
    private Integer role;
    private String realName;
    private String idCard;
    private Integer realNameVerified;
    private Integer classId;
    
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
    
    /**
     * 健康码状态（基于请假状态计算）
     * 0-绿码，1-黄码，2-红码
     */
    private Integer healthCodeStatus;
    
    /**
     * 健康码描述
     */
    private String healthCodeMessage;
    
    /**
     * 是否在请假中
     */
    private Boolean onLeave;
    
    /**
     * 当前请假信息
     */
    private String currentLeaveInfo;
}





